package com.dk.enumerate;

/**
 * 框架规则文本枚举
 */
public enum DkRuleEnum {
    REPLACE_PATTERN("\\$\\{(.*?)}"),
    DB_URL("url"),
    DB_USER("user"),
    DB_PWD("pwd"),

    ACTIONTYPE_CASE("Case"),
    ACTIONTYPE_SQL_SELECT("SQL_SELECT"),
    ACTIONTYPE_SQL_INSERT("SQL_INSERT"),
    ACTIONTYPE_SQL_UPDATE("SQL_UPDATE"),
    ACTIONTYPE_SQL_DELETE("SQL_DELETE"),
    ACTIONTYPE_SQL_WAIT("WAIT"),

    ACTION("Action"),
    REQ("Req"),
    ASSERT("assert"),
    ACTION_NUM("ActionNum"),
    HEADER("HEADER"),
    BODY("BODY"),

    ASSERT_TYPE_EQUALS("equals"),
    ASSERT_TYPE_CONTAIN("contain"),
    ASSERT_TYPE_NOCONTAIN("noContain"),
    ASSERT_TYPE_JSONPATH("jsonPath");

    private String value;

    private DkRuleEnum(String value){
        this.value = value;
    }

    public String getValue(){
        return this.value;
    }

    public void setValue(String value){
        this.value = value;
    }
}
